package com.hxit.sportem.dao;

import com.hxit.sportem.entity.Equipment;
import com.hxit.sportem.utils.ResultVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EqmentDao {
    /**
     * 显示器材列表
     */
    public List<Equipment> showList(String name);

    /**
     * 根据器材名查询器材
     *
     */
    public Equipment getEqmentByName(String name);

    public Equipment getEqmentById(Integer id);
    /**
     * 添加用户
     */
    public void addEqment(Equipment user);

    public void deleEqmentById(Integer id);

    public void updateEqment(Equipment user);

    void deleteBatch(@Param("idList") Integer[] idList);
}
